package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 *  实体类
 * 表名：sys_dict_item
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_dict_item")
public class SysDictItem implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false, length = 32)
    private String id;
    
    /**
     * 字典id
     */
    @Column(name = "dict_id", length = 32)
    private String dictId;
    
    /**
     * 字典项文本
     */
    @Column(name = "item_text", nullable = false, length = 100)
    private String itemText;
    
    /**
     * 字典项值
     */
    @Column(name = "item_value", nullable = false, length = 100)
    private String itemValue;
    
    /**
     * 描述
     */
    @Column(name = "description", length = 255)
    private String description;
    
    /**
     * 排序
     */
    @Column(name = "sort_order")
    private Integer sortOrder;
    
    /**
     * 状态（1启用 0不启用）
     */
    @Column(name = "status")
    private Integer status;
    
    /**
     * 
     */
    @Column(name = "create_by", length = 32)
    private String createBy;
    
    /**
     * 
     */
    @Column(name = "create_time")
    private java.time.LocalDateTime createTime;
    
    /**
     * 
     */
    @Column(name = "update_by", length = 32)
    private String updateBy;
    
    /**
     * 
     */
    @Column(name = "update_time")
    private java.time.LocalDateTime updateTime;
    
    @Override
    public String toString() {
        return "SysDictItem{" +
            "id=" + id +
            ", dictId=" + dictId +
            ", itemText=" + itemText +
            ", itemValue=" + itemValue +
            ", description=" + description +
            ", sortOrder=" + sortOrder +
            ", status=" + status +
            ", createBy=" + createBy +
            ", createTime=" + createTime +
            ", updateBy=" + updateBy +
            ", updateTime=" + updateTime +
        '}';
    }
} 